import VueRouter from 'vue-router';
import About from '@/pages/About';
import Home from '@/pages/Home';
import News from '@/pages/News';
import Message from '@/pages/Message';
import Detail from '@/pages/Detail';

export default new VueRouter({
    routes: [
        {
            path: "/about",
            component: About
        }, {
            path: "/home",
            component: Home,
            children:[
                {
                    path: "news",
                    component: News,
                    children:[
                        {
                            path: "about",
                            component: About
                        }
                    ]
                },{
                    path: "message",
                    component: Message,
                    children:[
                        {
                            name:"xiangqing",
                            path: "detail/:id/:title",
                            component: Detail
                        }
                    ]
                }
            ]
        }
    ]
})